#ifdef __cplusplus
#include <cstring>
#include <cstdio>
#else
#include <string.h>
#include <stdio.h>
#endif

int main () {
  char str[] = "- Hi, Mark! 14.03.2015";
  char del[] = " ,.!-";
  char *pChar;
  int count = 0;
  printf("Podzial \"%s\" za pomoca znakow z \"%s\"\n", str, del);
  pChar = strtok(str, del);
  while (pChar != NULL) {
    count++;
    printf("%d: %s\n", count, pChar);
    pChar = strtok(NULL, del);
  }
  return 0;
}